Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOB-9899]: Add Auth Checks Before API Calls #463

Merged
merged 15 commits into from
Oct 15, 2024
Merged

[MOB-9899]: Add Auth Checks Before API Calls #463

merged 15 commits into from
Oct 15, 2024

Conversation

mprew97
Copy link
Contributor

@mprew97 mprew97 commented Oct 14, 2024

JIRA Ticket(s) if any

Description

Adds typeOfAuth verification before API calls. With AUT, it's possible folks try to make these calls before being initialized more frequently. Should be helpful regardless of AUT.

Test Steps

@mprew97 mprew97 marked this pull request as draft October 14, 2024 21:23
@mprew97 mprew97 marked this pull request as ready for review October 15, 2024 13:58
Copy link
Contributor

@ts-nguyen ts-nguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forget that js modules are basically singletons so attributes are global like this 😅 but looks good, just left one callout!

Comment on lines 31 to 34
if (typeOfAuth !== null) {
await this.retrieveEmbeddedMessages(packageName, placementIds || []);
callback();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we throw an error in the case of no auth?

@mprew97 mprew97 merged commit 66dc2a0 into AUT_main Oct 15, 2024
1 check failed
@mprew97 mprew97 deleted the MOB-9899 branch October 15, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants